import request from '@/utils/request'

// 查询人才库列表
export function listPool(query) {
  return request({
    url: '/offer/pool/list',
    method: 'get',
    params: query
  })
}

// 查询人才库详细
export function getPool(id) {
  return request({
    url: '/offer/pool/' + id,
    method: 'get'
  })
}

// 新增人才库
export function addPool(data) {
  return request({
    url: '/offer/pool',
    method: 'post',
    data: data
  })
}

// 修改人才库
export function updatePool(data) {
  return request({
    url: '/offer/pool',
    method: 'put',
    data: data
  })
}

// 删除人才库
export function delPool(id) {
  return request({
    url: '/offer/pool/' + id,
    method: 'delete'
  })
}
